package cn.kgc.crowdfundingadminspringboot2.service;

import cn.kgc.crowdfundingadminspringboot2.pojo.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;


public interface AdminService {

    //根据id查询用户
    public Admin selectById(Integer id);

    //登录
    public Admin login(String loginAcct, String userPswd);

    //分页模糊查询
    PageInfo<Admin> queryForKeywordSearch(Integer pageNum, Integer pageSize, String keyword);

    //多条删除
    public void batchRemove(List<Integer> adminIdList);

    //添加用户
    public void saveAdmin(Admin admin);

    //根据id查询用户
    public Admin getAdminById(Integer adminId);

    //修改用户
    public void updateAdmin(Admin admin);


}
